<?php



class PaymentInvoiceMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.PaymentInvoiceMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(PaymentInvoicePeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(PaymentInvoicePeer::TABLE_NAME);
		$tMap->setPhpName('PaymentInvoice');
		$tMap->setClassname('PaymentInvoice');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('PAYMENT_IDEN', 'PaymentIden', 'VARCHAR' , 'payment', 'PAYMENT_IDEN', true, 20);

		$tMap->addForeignPrimaryKey('INVOICE_IDEN', 'InvoiceIden', 'VARCHAR' , 'invoice', 'INVOICE_IDEN', true, 20);

		$tMap->addColumn('AMOUNT', 'Amount', 'DECIMAL', true, 15);

	} 
} 